package dao;


import data.Article;

public interface ArticleDAO
{
	public static final String TABLE_NAME = "article";
	
	public static final String COLUMN_NAME_ID = "id";
	public static final String COLUMN_NAME_TITLE = "title";
	public static final String COLUMN_NAME_USER_ID = "user_id";
	public static final String COLUMN_NAME_AUTHOR = "author";
	public static final String COLUMN_NAME_UPLOAD_DATE = "upload_date";
	public static final String COLUMN_NAME_CONTENT = "content";
	
	
	public Article selectByID(int article_id);
	public void insert(Article article);
	public void update(Article article);
	public void update(int article_id, String column_name, String value);
	public void updateContent(int article_id, String content);
	public int count();
}







